package com.rustic.server.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 表[user_weixin]对应实体类
 *
 * @author auto
 */

@Data
@TableName(value = "`user_weixin`")
@ApiModel(value = "表user_weixin的实体类")
public class UserWeixin {

    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id", dataType = "Integer")
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", dataType = "int")
    @TableField("`user_id`")
    private int userId;

    /**
     * 微信appId
     */
    @ApiModelProperty(value = "微信appId", dataType = "String")
    @TableField("`app_id`")
    private String appId;

    /**
     * 在appId下的openId
     */
    @ApiModelProperty(value = "在appId下的openId", dataType = "String")
    @TableField("`open_id`")
    private String openId;

    /**
     * 类型: office-公众号, miniprogram-小程序, app-app
     */
    @ApiModelProperty(value = "类型: office-公众号, miniprogram-小程序, app-app", dataType = "String")
    @TableField("`type`")
    private String type;

    /**
     * 微信unionId
     */
    @ApiModelProperty(value = "微信unionId", dataType = "String")
    @TableField("`union_id`")
    private String unionId;

    /**
     * 当前绑定
     */
    @ApiModelProperty(value = "当前绑定", dataType = "String")
    @TableField("`is_bind`")
    private String isBind;

//    /**
//     * 是否订阅
//     */
//    @ApiModelProperty(value = "是否订阅", dataType = "String")
//    @TableField("`is_subscribe`")
//    private String isSubscribe;

    /**
     * 微信昵称
     */
    @ApiModelProperty(value = "微信昵称", dataType = "String")
    @TableField("`nickname`")
    private String nickname;

    /**
     * 微信头像
     */
    @ApiModelProperty(value = "微信头像", dataType = "String")
    @TableField("`avatar`")
    private String avatar;

    /**
     * 用户信息
     */
    @ApiModelProperty(value = "用户信息", dataType = "String")
    @TableField("`data`")
    private String data;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @TableField("`create_time`")
    private Date createTime;

}
